package com.lzw.breezeNovel.model.enums.comic;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.model.enums.comic
 * @date 2025/3/15
 * @description 漫画的状态
 */
@SuppressWarnings("all")
public enum ComicStatus {

    LIVE(0, "连载"),
    STOP(1, "断更"),
    END(2, "完结");

    private Integer status;
    private String desc;

    ComicStatus(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    /**
     * 根据状态获取描述
     */
    public static String getDesc(Integer status) {
        for (ComicStatus comicStatus : ComicStatus.values()) {
            if (comicStatus.status.equals(status)) {
                return comicStatus.desc;
            }
        }
        return null;
    }

}
